//package com.example.webproject.entity;
//
//import com.fasterxml.jackson.annotation.JsonBackReference;
//import com.fasterxml.jackson.annotation.JsonIgnore;
//import lombok.Data;
//
//import javax.persistence.*;
//import java.util.ArrayList;
//import java.util.Date;
//import java.util.List;
//
///**
// * @author hhs
// * @Description
// * @date 2022/12/6 14:09
// */
//@Data
//@Table(name = "t_result")
//@Entity
//public class Result extends BaseEntity {
//    /**
//     * 提交时间
//     */
//    @Temporal(TemporalType.TIMESTAMP)
//    private Date commitTime;
//
//    @ManyToOne
//    private User student;
//
////    @JsonBackReference
//    @ManyToOne
//    private Question question;
//
//
//    @ManyToMany
//    private List<Option> options=new ArrayList<>();
//    @JsonBackReference
//    public User getStudent() {
//        return student;
//    }
//    @JsonBackReference
//    public Question getQuestion() {
//        return question;
//    }
//    @JsonIgnore
//    public List<Option> getOptions() {
//        return options;
//    }
//}
